/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaArticulo.java
 *
 * Created on 08/09/2011, 18:10:46
 */

package interfacesGraficas;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JToolBar;
import javax.swing.event.EventListenerList;
import javax.swing.plaf.ComponentUI;

/**
 *
 * @author eduardo
 */
public class PantallaArticulo extends JInternalFrame {

    /** Creates new form PantallaArticulo */
    public PantallaArticulo() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        grupoArticulo = new javax.swing.ButtonGroup();
        btnBuscarArt = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        RadioButtonCodArt = new javax.swing.JRadioButton();
        RadioButtonNomArt = new javax.swing.JRadioButton();
        campoCodArt = new javax.swing.JTextField();
        campoNomArt = new javax.swing.JTextField();
        botonBuscarArticulos = new javax.swing.JButton();
        jToolBar1 = new javax.swing.JToolBar();
        btnNvoAt = new javax.swing.JButton();
        btnEditArt = new javax.swing.JButton();
        btnEliminaArt = new javax.swing.JButton();
        botonNvoEstado = new javax.swing.JButton();
        botonNvoTipoArt = new javax.swing.JButton();
        btnSalir = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaArticulos = new javax.swing.JTable();
        BotonPrediccionDemanda = new javax.swing.JButton();

        btnBuscarArt.setText("Buscar");

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jPanel1.setLayout(new java.awt.GridBagLayout());

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar Artículo"));
        jPanel2.setLayout(new java.awt.GridBagLayout());

        grupoArticulo.add(RadioButtonCodArt);
        RadioButtonCodArt.setSelected(true);
        RadioButtonCodArt.setText("Código Artículo");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 15, 0, 0);
        jPanel2.add(RadioButtonCodArt, gridBagConstraints);

        grupoArticulo.add(RadioButtonNomArt);
        RadioButtonNomArt.setText("Nombre Artículo");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 15, 0, 5);
        jPanel2.add(RadioButtonNomArt, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 120;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(17, 5, 0, 20);
        jPanel2.add(campoCodArt, gridBagConstraints);

        campoNomArt.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 120;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(17, 5, 5, 15);
        jPanel2.add(campoNomArt, gridBagConstraints);

        botonBuscarArticulos.setText("Buscar");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 10;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(15, 0, 0, 10);
        jPanel2.add(botonBuscarArticulos, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 15, 10, 0);
        jPanel1.add(jPanel2, gridBagConstraints);

        jToolBar1.setRollover(true);

        btnNvoAt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/proveedor-30.png"))); // NOI18N
        btnNvoAt.setToolTipText("Nuevo Artículo");
        btnNvoAt.setFocusable(false);
        btnNvoAt.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnNvoAt.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnNvoAt);

        btnEditArt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/document_pencil_30.png"))); // NOI18N
        btnEditArt.setToolTipText("Editar Artículo");
        btnEditArt.setFocusable(false);
        btnEditArt.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditArt.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnEditArt);

        btnEliminaArt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/user-trash-30.png"))); // NOI18N
        btnEliminaArt.setToolTipText("Eliminar Artículo");
        btnEliminaArt.setFocusable(false);
        btnEliminaArt.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEliminaArt.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnEliminaArt);

        botonNvoEstado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/folder_new-30.png"))); // NOI18N
        botonNvoEstado.setToolTipText("Nuevo Estado");
        botonNvoEstado.setFocusable(false);
        botonNvoEstado.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonNvoEstado.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonNvoEstado);

        botonNvoTipoArt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Combo-Box-30.png"))); // NOI18N
        botonNvoTipoArt.setToolTipText("Nuevo Tipo Producto");
        botonNvoTipoArt.setFocusable(false);
        botonNvoTipoArt.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonNvoTipoArt.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonNvoTipoArt);

        btnSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        btnSalir.setToolTipText("Salir");
        btnSalir.setFocusable(false);
        btnSalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnSalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnSalir);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipady = 60;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        jPanel1.add(jToolBar1, gridBagConstraints);

        tablaArticulos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tablaArticulos);

        BotonPrediccionDemanda.setText("Predicción Demanda");
        BotonPrediccionDemanda.setEnabled(false);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 732, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap(580, Short.MAX_VALUE)
                .addComponent(BotonPrediccionDemanda)
                .addGap(32, 32, 32))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(BotonPrediccionDemanda)
                .addContainerGap(72, Short.MAX_VALUE))
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipady = 60;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 0);
        jPanel1.add(jPanel3, gridBagConstraints);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 692, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(45, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BotonPrediccionDemanda;
    private javax.swing.JRadioButton RadioButtonCodArt;
    private javax.swing.JRadioButton RadioButtonNomArt;
    private javax.swing.JButton botonBuscarArticulos;
    private javax.swing.JButton botonNvoEstado;
    private javax.swing.JButton botonNvoTipoArt;
    private javax.swing.JButton btnBuscarArt;
    private javax.swing.JButton btnEditArt;
    private javax.swing.JButton btnEliminaArt;
    private javax.swing.JButton btnNvoAt;
    private javax.swing.JButton btnSalir;
    private javax.swing.JTextField campoCodArt;
    private javax.swing.JTextField campoNomArt;
    private javax.swing.ButtonGroup grupoArticulo;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JTable tablaArticulos;
    // End of variables declaration//GEN-END:variables

    public JRadioButton getRadioButtonCodArt() {
        return RadioButtonCodArt;
    }

    public void setRadioButtonCodArt(JRadioButton RadioButtonCodArt) {
        this.RadioButtonCodArt = RadioButtonCodArt;
    }

    public JRadioButton getRadioButtonNomArt() {
        return RadioButtonNomArt;
    }

    public void setRadioButtonNomArt(JRadioButton RadioButtonNomArt) {
        this.RadioButtonNomArt = RadioButtonNomArt;
    }

    public JButton getBtnBuscarArt() {
        return btnBuscarArt;
    }

    public void setBtnBuscarArt(JButton btnBuscarArt) {
        this.btnBuscarArt = btnBuscarArt;
    }

    public JButton getBtnEditArt() {
        return btnEditArt;
    }

    public void setBtnEditArt(JButton btnEditArt) {
        this.btnEditArt = btnEditArt;
    }

    public JButton getBtnEliminaArt() {
        return btnEliminaArt;
    }

    public void setBtnEliminaArt(JButton btnEliminaArt) {
        this.btnEliminaArt = btnEliminaArt;
    }

    public JButton getBtnNvoAt() {
        return btnNvoAt;
    }

    public void setBtnNvoAt(JButton btnNvoAt) {
        this.btnNvoAt = btnNvoAt;
    }

    public JButton getBtnSalir() {
        return btnSalir;
    }

    public void setBtnSalir(JButton btnSalir) {
        this.btnSalir = btnSalir;
    }

    public JTextField getCampoCodArt() {
        return campoCodArt;
    }

    public void setCampoCodArt(JTextField campoCodArt) {
        this.campoCodArt = campoCodArt;
    }

    public JTextField getCampoNomArt() {
        return campoNomArt;
    }

    public void setCampoNomArt(JTextField campoNomArt) {
        this.campoNomArt = campoNomArt;
    }

    public ButtonGroup getGrupoArticulo() {
        return grupoArticulo;
    }

    public void setGrupoArticulo(ButtonGroup grupoArticulo) {
        this.grupoArticulo = grupoArticulo;
    }

    public JPanel getjPanel1() {
        return jPanel1;
    }

    public void setjPanel1(JPanel jPanel1) {
        this.jPanel1 = jPanel1;
    }

    public JPanel getjPanel2() {
        return jPanel2;
    }

    public void setjPanel2(JPanel jPanel2) {
        this.jPanel2 = jPanel2;
    }

    public JPanel getjPanel3() {
        return jPanel3;
    }

    public void setjPanel3(JPanel jPanel3) {
        this.jPanel3 = jPanel3;
    }

    public JScrollPane getjScrollPane1() {
        return jScrollPane1;
    }

    public void setjScrollPane1(JScrollPane jScrollPane1) {
        this.jScrollPane1 = jScrollPane1;
    }

    public JToolBar getjToolBar1() {
        return jToolBar1;
    }

    public void setjToolBar1(JToolBar jToolBar1) {
        this.jToolBar1 = jToolBar1;
    }

    public JTable getTablaArticulos() {
        return tablaArticulos;
    }

    public void setTablaArticulos(JTable tablaArticulos) {
        this.tablaArticulos = tablaArticulos;
    }

    public JButton getBotonNvoEstado() {
        return botonNvoEstado;
    }

    public void setBotonNvoEstado(JButton botonNvoEstado) {
        this.botonNvoEstado = botonNvoEstado;
    }

    public JButton getBotonNvoTipoArt() {
        return botonNvoTipoArt;
    }

    public void setBotonNvoTipoArt(JButton botonNvoTipoArt) {
        this.botonNvoTipoArt = botonNvoTipoArt;
    }

    public JButton getBotonPrediccionDemanda() {
        return BotonPrediccionDemanda;
    }

    public void setBotonPrediccionDemanda(JButton BotonPrediccionDemanda) {
        this.BotonPrediccionDemanda = BotonPrediccionDemanda;
    }

    public JButton getBotonBuscarArticulos() {
        return botonBuscarArticulos;
    }

    public void setBotonBuscarArticulos(JButton botonBuscarArticulos) {
        this.botonBuscarArticulos = botonBuscarArticulos;
    }

    public boolean isIconable() {
        return iconable;
    }

    public void setIconable(boolean iconable) {
        this.iconable = iconable;
    }

    public boolean isIsClosed() {
        return isClosed;
    }

    public void setIsClosed(boolean isClosed) {
        this.isClosed = isClosed;
    }

    public boolean isIsIcon() {
        return isIcon;
    }

    public void setIsIcon(boolean isIcon) {
        this.isIcon = isIcon;
    }

    public boolean isIsMaximum() {
        return isMaximum;
    }

    public void setIsMaximum(boolean isMaximum) {
        this.isMaximum = isMaximum;
    }

    public boolean isIsSelected() {
        return isSelected;
    }

    public void setIsSelected(boolean isSelected) {
        this.isSelected = isSelected;
    }

    public EventListenerList getListenerList() {
        return listenerList;
    }

    public void setListenerList(EventListenerList listenerList) {
        this.listenerList = listenerList;
    }

    public ComponentUI getUi() {
        return ui;
    }

    public void setUi(ComponentUI ui) {
        this.ui = ui;
    }

    
    



}
